package factory.method;

public class ConcreteFactory extends Factory{
    @Override
    protected Product createProduct() {
        Product product = new Product();
        product.setSerialNo("001");
        return product;
    }

    @Override
    protected void register(Product product) {
        product.setName("bean1");
    }
}
